<?php 
use Managers\Passport;
/**
 * @deprecated
 */
class App_Plugin_Auth extends Zend_Controller_Plugin_Abstract{
    protected $_authSession = null;
    /**
     * Function description
     * 
     * @since 28 мая 2010
     * @author diotheos
     * @return void
     */
    public function preDispatch(Zend_Controller_Request_Abstract $request){
        if(null === $this->_authSession) {
            $this->_authSession = new Zend_Auth_Storage_Session();
            Zend_Registry::set('user', $this->_authSession->read());
        }
    }
}